<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单登录</title>
    <link rel="stylesheet" href="lesson.css">
    <script src="js/lesson24.js"></script>

    <!-- 引入 Axios 的cdn地址 -->
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/axios/1.11.0/axios.js"></script> -->

    <!-- 将源码引入本地，再引入项目 -->
    <script src="axios.js"></script>
</head>

<body>
    <form id="myForm" action="http://172.19.1.251:8080/login" method="post">
        <input type="text" id="username" name="username" placeholder="请输入用户名" />
        <br>
        <input type="password" id="password" name="password" placeholder="请输入密码" />
        <br>

        <input id="btn1" type="submit" value="GET 登录" />
        <input id="btn2" type="submit" value="POST 登录" />
        <input id="btn3" type="submit" value="Axios GET 登录" />
        <input id="btn4" type="submit" value="Axios POST 登录" />

    </form>
</body>

</html>